ActiveAdmin::Dashboards.build do

    section "Last Profiles", :priority => 3 do
        table_for Profile.order('id desc').limit(10) do
            column("Name") {|profile| link_to profile.profile, admin_profile_path(profile)}
            column("Domain") {|profile| profile.domain}
            column("Scan Type") {|profile| status_tag(profile.scantype)}
        end
    end

    section "Last Regexes", :priority => 4 do
        div do
            table_for Regex.last(10) do
                column("Name") {|regex| link_to regex.name, admin_regex_path(regex)}
                column("Pattern") {|regex| regex.pattern} 
            end
        end
    end 


end
